//账号信息的ts类型

export interface ResponseData {
  code: number
  message: string
  total: number
}

//代表一个账号信息的ts类型
export interface User {
  id: number
  login: string
  name: string
  phone: string
  sex: string
  address: string
  role: number
  age: number
  password: string
  isExist: number
  createTime: Array<number>
}

//数组包含全部的用户信息
export type Records = User[]

// 获取全部用户信息接口返回的数据ts类型
export interface UserResponseData extends ResponseData {
  data: {
    records: Records
    total: number
  }
}

//代表一个职位的ts类型
export interface RoleData {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark: null
}
